package com.zws.cucumber.expander;

import com.jayway.jsonpath.JsonPath;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

class ZwsStrInternalUtil {

    static final ConcurrentMap<String, JsonPath> jsonPaths = new ConcurrentHashMap<>(64);

    static JsonPath getJsonPath(String jsonPath) {
        return jsonPaths.computeIfAbsent(jsonPath, JsonPath::compile);
    }
}
